package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 员工登录
     * @param employeeDTO
     * @return
     */
    void save(EmployeeDTO employeeDTO);
    /**
     * 分页员工数据查询
     * @param employeePageQueryDTO
     * @return PageResult
     */
    PageResult selectEmployeePage(EmployeePageQueryDTO employeePageQueryDTO);
    /**
     * 更新员工账号状态
     *
     * @param id
     * @return
     */
    void changeEmployeeStatus(long id,Integer status);
    /**
     * 根据id查询员工信息
     *
     * @param id
     * @return  Employee
     */
    Employee selectEmployeeById(long id) throws Exception;
    /**
     * 更新员工信息
     *
     * @param employeeDTO
     * @return
     */
    void update(EmployeeDTO employeeDTO);
}
